﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Configuration;

namespace Core.Extentions
{
    public static class DateExtentions
    {
        public static DateTime GetNowTimeByTimeZone(this DateTime dt)
        {
            return TimeZoneInfo.ConvertTimeBySystemTimeZoneId(dt, ConfigurationManager.AppSettings["TimeZone"]);
        }
    }
}
